package com.sc.design.proxy.forceproxy;

/***
 * 强制代理  通过访问真实对象指定的代理 来访问对象的方法
 */
public class Client {
    public static void main(String[] args) {
        IGamePlayer player = new GamePlayer("sc");
        player.killBoss();
        IGamePlayer proxy = player.getProxy();
        proxy.killBoss();
        proxy.upgrade();
    }
}
